<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function viewTable(oColor,fColor){
				var table ="<table border=1>"
				for(var i = 1;i<10;i++){
					if(i%2==0){
						table+="<tr bgcolor="+oColor+">";
					}else{
						table+="<tr bgcolor="+fColor+">";
					}
					for(var j = 1;j<=i;j++){
						table+="<td>";
						table+=i+"*"+j+"="+i*j;
						table+="</td>";
					}
				}
				return table;
			}
			var tab =  viewTable('red','yellow');
			document.write(tab);
		</script>
	</head>
	<body>
	</body>
</html>
